export { NetworkNodeElType } from '@/components/graph/NetworkGraph.type';
export { MindMapNodeEvent } from '@/components/graph/TreeGraph.type';
export {
	KnowledgeGraphNodeItemType,
	KnowledgeGraphLinkItemType,
	KnowledgeRelationshipItemType,
	GetKnowledgeGraphResponseType,
	KnowledgeDetailItemType
} from '@/api/service/knowledge.type';

export type RelationStyleByType = {
	label: string;
	isHierarchy: boolean;
}[];

export interface NodeItemType {
	id: string;
	label: string;
	type: string;
	root?: boolean;
}

export interface LinkItemType {
	source: string;
	target: string;
	label: string;
	isHierarchy: boolean;
}

// 单个知识点关系
export interface SingleKnowledgeRelationItemType {
	name: string;
	link: {
		code: string;
		name: string;
	}[];
}

// 搜索结果
export interface SearchResultItemType {
	id: string;
	tag: string;
	tagClass: string;
	title: string;
}
